package com.spring.definition;

public class DefinedPersonBean {
	// 养了一只狗
	private DefinedDogBean definedDogBean;

	private int personId;

	public DefinedDogBean getDefinedDogBean() {
		return definedDogBean;
	}

	public void setDefinedDogBean(DefinedDogBean definedDogBean) {
		this.definedDogBean = definedDogBean;
	}

	public int getPersonId() {
		return personId;
	}

	public void setPersonId(int personId) {
		this.personId = personId;
	}

	public void doMarkDogCallout() {
		String result = "person [" + personId + "],"
				+ definedDogBean.doCallout();
		System.out.println(result);
	}
}
